package com.summer.data.logging;

import com.summer.data.SummerData;

/**
 * @author 345480567@qq.com
 */
public class Logger {

    public static boolean isLogSql() {
        return SummerData.getConfig().isPrintSql();
    }

    public static void log(String format, Object... objects) {
        System.out.print(String.format(format, objects));
    }

    public void info(String format, Object... objects) {
        System.out.print(String.format(format, objects));
    }

    public void warn(String format, Object... objects) {
        System.err.print(String.format(format, objects));
    }

    public void error(String format, Object... objects) {
        System.err.print(String.format(format, objects));
    }

}
